// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import dataV from '@jiaminghi/data-view'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from "axios";

Vue.prototype.$axios = axios;

// 加载moment库
import moment from 'moment'
Vue.prototype.$moment = moment

// 引入echarts
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts

// 使用Element UI并配置全局选项
Vue.use(ElementUI, {
  passive: true
});

Vue.use(dataV)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
